<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

                  	<div class="dataTables-length" >
                        	每页记录
                            <select aria-controls="dynamic-table" class="form-page" onchange="jumpTablePage('1',$(this).val())">
                                <option <c:if test="${pageBean.pageSize eq 10}">selected='selected'</c:if> value="10">10</option>
                                <option <c:if test="${pageBean.pageSize eq 25}">selected='selected'</c:if> value="25">25</option>
                                <option <c:if test="${pageBean.pageSize eq 50}">selected='selected'</c:if> value="50">50</option>
                                <option <c:if test="${pageBean.pageSize eq 100}">selected='selected'</c:if> value="100">100</option>
                            </select>
                            <span class="ml5">共${pageBean.totalCount}条记录</span>
                     </div>
                    <div class="dataTables-paginate pull-right">
                        <ul class="pagination-user">
                        
                            <c:if test="${pageBean.hasPreviousPage == true }">
                            <li onclick="jumpTablePage('1')"><a href="#">首页</a></li>
                            <li onclick="jumpTablePage('${pageBean.currentPage-1}')"><a href="#">上一页</a></li>
                            </c:if>
                            <c:if test="${pageBean.hasPreviousPage == false }">
                            <li ><a href="javascript:void(0)" onclick="return false" class="disabled-pages">首页</a></li>
                            <li ><a href="javascript:void(0)" onclick="return false" class="disabled-pages">上一页</a></li>
                            </c:if>
                            <li><label class="pull-left"><input id="shouldChangePage" class="inp-number" value="${pageBean.currentPage}" type="text" style="height:29px;">&nbsp;/${pageBean.totalPage }&nbsp;</label></li>
                            <li><button onclick="jumpTablePage($('#shouldChangePage').val())" class="pull-right btn-fresh mr5">跳转</button></li>
                            <c:if test="${pageBean.hasNextPage == true }">
                            <li onclick="jumpTablePage('${pageBean.currentPage+1}')"><a href="#">下一页</a></li>
                            <li onclick="jumpTablePage('${pageBean.totalPage }')"><a href="#">尾页</a></li>
                            </c:if>
                            <c:if test="${pageBean.hasNextPage == false }">
                            <li ><a href="javascript:void(0)" onclick="return false" class="disabled-pages">下一页</a></li>
                            <li ><a href="javascript:void(0)" onclick="return false" class="disabled-pages">尾页</a></li>
                            </c:if>
                            
                        </ul>
                    </div>
